cmake_minimum_required(VERSION 3.5.1)
project(cloud_viewer)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(CMAKE_BUILD_TYPE Release)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})

# pcl
set(PCL_DIR $ENV{HOME}/pcl_1_8_1/share/pcl-1.8)
find_package(PCL 1.8 REQUIRED)
add_definitions(${PCL_DEFINITIONS})
include_directories(${PCL_INCLUDE_DIRS})

# 自己的库
include_directories(./ ../)

add_library(ShowUtils SHARED ShowUtils.cpp)
target_link_libraries(ShowUtils ${PCL_LIBRARIES})